package com.wlc.base.extendsdemo;

/**
 * @author 王立朝 wanglichao@champion-credit.com
 * @description 人类
 * @date 2021-09-27 08:43
 */
public class People {

    private String name;
    private String age;
    public String address;

    public People(String name, String age) {
        this.name = name;
        this.age = age;
        this.address = "北京";
    }

    public People() {
        System.out.println("父类无参数的构造方法");
    }

    public void say() {
        System.out.println(this.name + this.age + " 在说话");
    }
}
